package core

import (
	"xframe/src/core/_frame"
	"xframe/src/pkg"

	"github.com/gin-gonic/gin"
)

func Router(router *gin.Engine) {

	// 系统路由
	router.GET("/", mainIndex)
	_frame.Router(router.Group("/sys"))
}

// 重定向到首页
func mainIndex(c *gin.Context) {
	c.Redirect(302, pkg.MainIndex)
}
